#ifndef CSCORE_H_INCLUDED
    #define CSCORE_H_INCLUDED

#include <string>
#include <vector>
#include <cmath>

#include <stdlib.h>
#include "pugixml.hpp"

#include "CFont.h"
#include "CSurface.h"

using namespace std;

struct Man {
    int     Score;
    char*   Name;
};

struct TableL {
    int Start;
    int End;
};

class CScore {
    public:
        static CScore Score;

    public:
        SDL_Surface*    Surf_table;

    public:
        int X;
        int bX;

        int vx;

    public:
        vector<Man>     Data[3];

    public:
        TableL          Length;
        TableL          bLength;

        bool           Anim;

    public:
        int             Target;
        int             Level;
        int             bLevel;

    public:
        bool OnLoad(char* link);

        bool AddScore(char* Name, int X, char* link);

        bool OnDraw(SDL_Surface* Surf_Display, TTF_Font* Font);

        void ScrollUp();

        void ScrollDown();

        void NextLevel();

        void ExLevel();

        void Animate(SDL_Surface* Surf_Display, TTF_Font* Font);
};


#endif // CSCORE_H_INCLUDED
